package org.l.mybatis.core.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Created by 严秋旺 on 2017/7/29.
 */
@Documented
@Target({ ElementType.FIELD })
@Retention(RetentionPolicy.RUNTIME)
public @interface DBField {
    /**
     * 字段名
     * @return
     */
    String value() default "";

    /**
     * java.sql.Types
     * @return
     */
    int type() default Integer.MIN_VALUE;

    boolean primary() default false;

    boolean increment() default false;
}
